package com.geekca.j2.teststatic;

public class TestMain {
    public static void main(String[] args) {
        Employee employeeA = new Employee();
        employeeA.setName("Tom");
        employeeA.setAge(23);

        employeeA.setDept("研发部");
        Employee.companyName = "必胜客";

        Employee employeeB = new Employee();
        employeeB.setAge(33);
        System.out.println("name: " + employeeB.getName());
        System.out.println("雇员B的公司: " + employeeB.companyName);

        employeeB.companyName = "极客咖";

        System.out.println("公司: " + Employee.companyName);
        System.out.println("公司: " + employeeA.companyName);

        int maxAge = Employee.comparebyAge(employeeA, employeeB);
        System.out.println(maxAge);
    }
}
